package org.note.law.module.provision;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.lboot.jpa.entity.BaseEntity;
import org.springframework.data.jpa.domain.support.AuditingEntityListener;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EntityListeners;
import javax.persistence.Table;
import java.io.Serializable;

@EqualsAndHashCode(callSuper = true)
@Data
@Entity
@Table(name = "law_provision")
@ApiModel(value = "法条",description = "法条")
@EntityListeners(AuditingEntityListener.class)
public class LawProvision extends BaseEntity implements Serializable {


    @Column(name = "title")
    String title;

    @Column(name = "level")
    Integer level;

    @Column(name = "content",columnDefinition = "TEXT")
    String content;

    // 关联法典信息
    @Column(name = "code_id")
    String codeId;

    @Column(name = "code_name")
    String codeName;

    @Column(name = "code_version")
    String codeVersion;
}
